home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FCLOSE(3) MINTLIB LIBRARY FUNCTIONS FCLOSE(3)
-
-
- N✓NA✓AM✓ME✓E
- fclose, fflush - close or flush a stream
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdio.h>
-
- int fclose(FILE *stream);
-
- int fflush(FILE *stream);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- fclose writes out any buffered data for the named stream,
- and closes the named stream. Buffers allocated by the
- standard input/output system are freed.
-
- fclose is performed automatically for all open files upon
- calling exit.
-
- fflush writes any unwritten data for an output stream or
- an update stream in which the most recent operation was
- not input to be delivered to the host environment to the
- file; otherwise it is ignored. The named stream remains
- open.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- fclose returns:
-
- 0 on success. EOF if any error (such as trying to write
- to a file that
- has not been opened for writing) was detected.
-
- fflush returns:
-
- 0 on success or if the file wasn't open. EOF if an
- error was detected while writing the data.
-
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- c✓cl✓lo✓os✓se✓e(✓(3✓3)✓),✓, e✓ex✓xi✓it✓t(✓(3✓3)✓),✓, f✓fo✓op✓pe✓en✓n(✓(3✓3)✓),✓, s✓se✓et✓tb✓bu✓uf✓f(✓(3✓3)✓)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-